home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
287_03
/
xhline.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1989-05-23
|
384 b
|
20 lines
#include <stdio.h>
#include <gds.h>
int XHLine(x,y,boundary,leftx,rightx)
int x,y,boundary,*leftx,*rightx;
{
int ret;
x+=ORGX;
y+=ORGY;
if (outside(x,y)) return(-1);
ret=hlnlmt(x,y,(boundary ? 0xffff : 0),STYLE,leftx,rightx);
if (!ret) {
*leftx+=ORGX;
*rightx+=ORGX;
}
return(ret);
}